﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true"
    CodeBehind="Logon.aspx.cs" Inherits="TPCN.Logon" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../App_Themes/Default/login.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/Admincp/messages.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="box">
        <div class="boxtitle">
            Đăng nhập
        </div>
        <div class="boxcontent">
            <div class="login-center">
                <asp:Panel ID="errorpanel" CssClass="message error" runat="server" Visible="false">
                    <asp:Literal ID="message" runat="server" EnableViewState="False"></asp:Literal>
                </asp:Panel>
                <div class="login-box">
                    <div class="login-wrapper">
                        <div class="login-title">
                            Đăng nhập</div>
                        <div class="login-info">
                            <div class="login-row">
                                <span class="label">Email</span> <span class="control">
                                    <asp:TextBox ID="Username" runat="server"></asp:TextBox></span>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ErrorMessage="Bạn chưa nhập Email"
                                    ValidationGroup="mLogin" ControlToValidate="Username" ForeColor="Red" ToolTip="Bạn chưa nhập email">*</asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                    ControlToValidate="Username" ErrorMessage="Email không hợp lệ" ForeColor="Red" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                            </div>
                            <div class="login-row">
                                <span class="label">Mật khẩu</span> <span class="control">
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox></span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn chưa nhập mật khẩu"
                                    ControlToValidate="Password" ValidationGroup="mLogin" ForeColor="Red" ToolTip="Bạn chưa nhập mật khẩu">*</asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="login-button">
                            <asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" ImageUrl="~/App_Themes/Default/images/login-button.png"
                                ValidationGroup="mLogin" onclick="LoginButton_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
